package com.demo.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Order {
    private Integer id;

    private String no;

    private String saleId;

    private String saleName;

    private Double percent;

    private String clienteleId;

    private String clienteleName;

    private String clienteleUserName;

    private String clienteleUserPhone;

    private String offerId;

    private String goodsId;

    private String goodsName;
    /*
    报价
     */
    private Double price;
    /**
     * 实际支付单价
     */
    private Double actualPrice;

    private Double number;
    /***
     * 实提数量
     */
    private Double actualNumber;
    /**
     * 0正常执行，1终止执行，2强制执行完毕,0为默认值
     */
    private String status;
    /**
     *
     */
    private Double deliverNumber;

    private String commissionStatus;

    private Double total;
    /**
     * 实际收取
     */
    private Double actualTotal;

    private String payStatus;
    /**
     * 发货状态：0未发货，1已发货，2部分发货
     */
    private String deliverStatus;

    private Date updateAt;

    private Date createAt;
    /**
     * 审核时间
     */
    private Date checkTime;
    /**
     * 审核用户ID
     */
    private String checker;

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }
    //    free_store_day,free_store_type,delivery_day_end,delivery_day,delivery_type,pay_method,pay_date,pay_condition,pick_up_method

    public Double getActualNumber() {
        return actualNumber;
    }

    public void setActualNumber(Double actualNumber) {
        this.actualNumber = actualNumber;
    }

    /***
     * 免费仓储天数
     */
    private Integer freeStoreDay;

    public String getOfferId() {
        return offerId;
    }

    public void setOfferId(String offerId) {
        this.offerId = offerId;
    }

    /**
     * 免费仓储类型：0合同签订日起,1交割日起
     */
    private String freeStoreType;
    private String checkStatus;
    /**
     * 交货日期截止时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDayEnd;
    /**
     * 交货日期\开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDay;
    /**
     * 交货类型：0具体时间，1时间区间
     */
    private String deliveryType;
    /**
     * 提货方式
     */
    private String pickUpMethod;
    /**
     * 支付方式
     */
    private String payMethod;
    /**
     * 付款日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payDate;
    /**
     * 拒绝原因
     */
    private String reason;
    /**
     * 付款条件
     */
    private String payCondition;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

    public String getSaleId() {
        return saleId;
    }

    public void setSaleId(String saleId) {
        this.saleId = saleId == null ? null : saleId.trim();
    }

    public String getSaleName() {
        return saleName;
    }

    public void setSaleName(String saleName) {
        this.saleName = saleName == null ? null : saleName.trim();
    }

    public Double getPercent() {
        return percent;
    }

    public void setPercent(Double percent) {
        this.percent = percent;
    }

    public String getClienteleId() {
        return clienteleId;
    }

    public void setClienteleId(String clienteleId) {
        this.clienteleId = clienteleId == null ? null : clienteleId.trim();
    }

    public String getClienteleName() {
        return clienteleName;
    }

    public void setClienteleName(String clienteleName) {
        this.clienteleName = clienteleName == null ? null : clienteleName.trim();
    }

    public String getClienteleUserName() {
        return clienteleUserName;
    }

    public void setClienteleUserName(String clienteleUserName) {
        this.clienteleUserName = clienteleUserName == null ? null : clienteleUserName.trim();
    }

    public String getClienteleUserPhone() {
        return clienteleUserPhone;
    }

    public void setClienteleUserPhone(String clienteleUserPhone) {
        this.clienteleUserPhone = clienteleUserPhone == null ? null : clienteleUserPhone.trim();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getNumber() {
        return number;
    }

    public void setNumber(Double number) {
        this.number = number;
    }

    public Double getDeliverNumber() {
        return deliverNumber;
    }

    public void setDeliverNumber(Double deliverNumber) {
        this.deliverNumber = deliverNumber;
    }

    public String getCommissionStatus() {
        return commissionStatus;
    }

    public void setCommissionStatus(String commissionStatus) {
        this.commissionStatus = commissionStatus;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus == null ? null : payStatus.trim();
    }

    public String getDeliverStatus() {
        return deliverStatus;
    }

    public void setDeliverStatus(String deliverStatus) {
        this.deliverStatus = deliverStatus == null ? null : deliverStatus.trim();
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Integer getFreeStoreDay() {
        return freeStoreDay;
    }

    public void setFreeStoreDay(Integer freeStoreDay) {
        this.freeStoreDay = freeStoreDay;
    }

    public String getFreeStoreType() {
        return freeStoreType;
    }

    public void setFreeStoreType(String freeStoreType) {
        this.freeStoreType = freeStoreType;
    }

    public Date getDeliveryDayEnd() {
        return deliveryDayEnd;
    }

    public void setDeliveryDayEnd(Date deliveryDayEnd) {
        this.deliveryDayEnd = deliveryDayEnd;
    }

    public Date getDeliveryDay() {
        return deliveryDay;
    }

    public void setDeliveryDay(Date deliveryDay) {
        this.deliveryDay = deliveryDay;
    }

    public String getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(String deliveryType) {
        this.deliveryType = deliveryType;
    }

    public String getPickUpMethod() {
        return pickUpMethod;
    }

    public void setPickUpMethod(String pickUpMethod) {
        this.pickUpMethod = pickUpMethod;
    }

    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }

    public Date getPayDate() {
        return payDate;
    }

    public void setPayDate(Date payDate) {
        this.payDate = payDate;
    }

    public String getPayCondition() {
        return payCondition;
    }

    public void setPayCondition(String payCondition) {
        this.payCondition = payCondition;
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(Double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Double getActualTotal() {
        return actualTotal;
    }

    public void setActualTotal(Double actualTotal) {
        this.actualTotal = actualTotal;
    }
}